import {SetMetadata} from "@nestjs/common";
import {APP_PIPE} from "@nestjs/core";
import {MyValidationPipe} from "../pipe/MyValidationPipe";

export enum Validate_Mods {
    update = "update",
    create = "create",
    delete = "delete",
    detail = "detail"
}

// export const VALIDATE_KEY = "validate_key";
// export const DoValidate = (...mods: Validate_Mod_Group[]) => SetMetadata(VALIDATE_KEY, mods)

// 全局自定义dto管道校验
// export const Validate_Provider = {
//     provide: APP_PIPE,
//     useClass: MyValidationPipe
// }
